package com.schedule.mapper;

import com.schedule.entity.LoginUser;

import org.apache.ibatis.annotations.*;

@Mapper
public interface AdminMapper  {
    @Select("select * from user where username = #{username}")
    LoginUser Login(String username);
    @Insert("INSERT INTO user (username, password,salt,role) VALUES (#{username}, #{password},#{salt},#{role})")
    void Register(LoginUser registerData);
}
